//
//  MyHeaderView.m
//  CatMusic
//
//  Created by dllo on 15/4/24.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "MyHeaderView.h"

@implementation MyHeaderView
- (void)dealloc
{
    [_label release];
    [super dealloc];
}
-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.label = [[UILabel alloc] init];
        self.label.font = [UIFont systemFontOfSize:18];
        [self addSubview:self.label];
    }
    return self;
}

- (void)setLabelText:(NSString *)text
{
    self.label.text = text;
    [self.label sizeToFit];
}
@end
